import request from "@/axios";

export class dictApi {

  // 字典新增/编辑
  static edit = (params) =>
    request.postAndLoadData("/adminapi/dict/store", params);
  // 字典列表
  static page = (params) =>
    request.getAndLoadData("/adminapi/dict/list", params);
  // 字典删除
  static delete = (params) =>
    request.delAndLoadData("/adminapi/dict/delete", params);
    // 查询子字典
  static getChildren = (params) =>
  request.getAndLoadData("/adminapi/dict/values", params);
}
